﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using bdxyit.com.RecruitmentAppSys.IDAL;
using bdxyit.com.RecruitmentAppSys.DALFactory;
using bdxyit.com.RecruitmentAppSys.Models;
using bdxyit.com.RecruitmentAppSys.ViewModels;

namespace bdxyit.com.RecruitmentAppSys.BLL
{
    public class WorkListInfoViewModelBLL
    {
        private static readonly IWorkListInfoDAL WorkListInfoDAL = DataAccess.CreateWorkListInfo();
        public static List<WorkListInfo> SelectWorkListInfo()
        {
            return SelectWorkListInfo();
        }
        /// <summary>
        /// 删除worklistinfo信息根据userid
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        public static bool DeleteWorkListInfoByUserId(string UserId)
        {
            return WorkListInfoDAL.DeleteWorkListInfoByUserId(UserId);
        }
        /// <summary>
        /// 插入一条记录给workinfolist
        /// </summary>
        /// <param name="workinfo"></param>
        /// <returns></returns>
        public static bool InsertWorkInfo(WorkListInfo workinfo)
        {
            return WorkListInfoDAL.InsertWorkInfo(workinfo);
        }

        public static bool UpdateWorkListInfo(WorkListInfo cmodel)
        {
            return WorkListInfoDAL.UpdateWorkListInfo(cmodel);
        }
    }
}
